-- GENERATED SPELL FOR [Engineer Spark Overgrind] --


function spell0_17243(pUnit, Event) --@Throw Dynamite,n/a--
pUnit:FullCastSpellOnTarget(7978,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17243', 1000, 1)
end

function Sorts_17243(pUnit, Event)
local choix_sorts_17243 = math.random(0, 0)
if choix_sorts_17243 == 0 then
pUnit:RegisterEvent('spell0_17243', 1, 1)
end
end

function mob17243_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17243', math.random(1500, 3000), 1)
end

function mob17243_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17243_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17243_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17243, 1, 'mob17243_Action')
RegisterUnitEvent(17243, 2, 'mob17243_Leave')
RegisterUnitEvent(17243, 3, 'mob17243_Kill')
RegisterUnitEvent(17243, 4, 'mob17243_Die')
